<%-- 
    Document   : layout
    Created on : 06 Des 10, 22:46:58
    Author     : Ivan
--%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html:html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><tiles:getAsString name="title"/></title>
        <tiles:insert attribute="ajax"/>
    </head>
    <body>
        <table width="100%"  border="0" cellpadding="0" cellspacing="0" height="100%">
            <tr height="5%">
                <td colspan="3" background="images/hearder_bg.jpg">
                    <tiles:insert attribute="header"/>
                </td>
            </tr>
            <tr height="2%" bgcolor="#004173" >
                <td colspan="2" width="67%" >
                    &nbsp;
                    <logic:notEmpty name="currentUser">
                        <font color="white" class="style3">Selamat Datang&nbsp;<bean:write name="currentUser" property="firstName"/></font>
                    </logic:notEmpty>
                </td>
                <td width="16%" align="right" valign="middle">
                    <logic:notEmpty name="currentUser">
                        <a href="/SIS/home.do" class="style3"><img src="images/home.jpg" border="0" alt="ke halaman depan"></a>&nbsp;&nbsp;<a href="/SIS/logout.do" class="style3"><img src="images/logout2.jpg" border="0" alt="Logout"></a>
                    </logic:notEmpty>
                    &nbsp;
                </td>
            </tr>
            <tr heigth="80%">
                <td width="18%" bgcolor="#D6D3D6" valign="top">
                    <tiles:insert attribute="leftMenu"/>
                </td>
                <td colspan="2" valign="top" width="*">
                    <tiles:insert attribute="main"/>
                </td>
            </tr>
            <tr height="5%">
                <td bgcolor="#D6D3D6">&nbsp;</td>
                <td colspan="2">
                    <tiles:insert attribute="footer"/>
                </td>               
            </tr>
        </table>
    </body>
</html:html>
